package cn.wolfcode.wolf2w.business.listener;

import cn.wolfcode.wolf2w.business.api.domain.Strategy;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import top.javatool.canal.client.annotation.CanalTable;
import top.javatool.canal.client.handler.EntryHandler;

@Slf4j
@Component
@CanalTable(value = "ta_strategy")
public class StrategyHandler implements EntryHandler<Strategy> {

    @Override
    public void insert( Strategy orderInfo) {
        log.info("当有数据插入的时候会触发这个方法");
    }

    @Override
    public void update(Strategy before, Strategy after) {
        log.info("当有数据更新的时候会触发这个方法");
    }

    @Override
    public void delete(Strategy orderInfo) {
        log.info("当有数据删除的时候会触发这个方法");
    }
}